import http from '../utils/http.js'
const order = {
	create(data) {
		return http.post(`/order`, data);
	},
	findByUserId(status) {
		return http.get(`/order/findByUserId?status=${status}`);
	},
	findAllName() {
		return http.get(`/goods/findAllName`);
	},
	findById(id) {
		return http.get(`/goods/${id}`);
	},
	find(params) {
		return http.get(`/goods`, params);
	}
}

export default order;
